package com.yj.cloud.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yj.cloud.common.mybatis.core.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户和角色关联表
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysUserRole extends BaseEntity {

    /**
     * 用户ID
     */
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Integer userId;

    /**
     * 角色ID
     */
    private Integer roleId;


}
